package cn.unknowpupil.init.service.system;

import cn.unknowpupil.init.domain.system.SysBackup;
import cn.unknowpupil.init.domain.system.SysLogRecord;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * Created at 2020-10-16 by  w10g <br>
 * Initialize LogRecord  ... <br>
 *  数据备份 核心业务处理接口
 * @author unknowpupil
 * @since 0.0.1
 */
public interface ISysBackupService extends IService<SysBackup> {


        /**
         *  详情
         * @param id {@code Long}   LogRecord ID
         * @return {@link SysLogRecord}
         */
        SysBackup info(Long id);

        /**
         *  删除
         * @param ids {@code Long}   LogRecord ID
         * @return {@link SysLogRecord}
         */
        boolean delete(Long[] ids);


        /**
         * 分页
         * @param current {@code int} 页码
         * @param size {@code int} 笔数
         * @param sysBackup {@link SysBackup}
         * @return {@code IPage<SysBackup>}
         */
        IPage<SysBackup> page(int current, int size, SysBackup sysBackup);

        /**
         * 备份
         * @param backup
         * @return
         */
        boolean create(SysBackup backup);

        /**
         * 备份
         * @param id
         * @return
         */
        boolean restore(Long id);
}
